home *** CD-ROM | disk | FTP | other *** search
- Path: sundog.tiac.net!usenet
- From: dmorin@tiac.net (Duane Morin)
- Newsgroups: comp.lang.c
- Subject: Re: Help!
- Date: Fri, 26 Jan 1996 16:12:07 GMT
- Organization: The Internet Access Company
- Message-ID: <4eaua4$9r3@sundog.tiac.net>
- References: <4ea5p4$j0s@ratree.psu.ac.th>
- NNTP-Posting-Host: 206.119.56.19
- X-Newsreader: Forte Free Agent 1.0.82
-
- s3610165@maliwan.psu.ac.th (Sanon CHAOCHAIYAPORN) wrote:
- > There is a file, hi.bat, in my 'h:\data' directory and I try to
- >run it by C program but it fail. Please, advice to me?
-
- >system("hi.bat");
-
- In DOS you can't system directly to a batch file like that, you can to
- call the command interpreter as well. Try this:
-
- system("command /c hi.bat");
-
- see if that works.
-
- Duane
-
- ========================================================
- Views and opinions expressed above are mine and do not
- necessarily reflect those of my employer.
- http://www.tiac.net/users/dmorin/ <-- A real "home" page
- ========================================================
-
-